<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('客户信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
            <div class="col-sm-12 select-table table-striped">
                <form id="formId" th:object="${id}">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:info:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:info:remove')}]];
        var prefix = ctx + "system/info";
        var id=[[*{id}]];
        $(function() {
            var options = {
                url: prefix + "/selectinfo",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "客户信息",
                method: 'post',
                sidePagination: "server",
                showFooter:true,
                showColumns: false,
                contentType: "application/x-www-form-urlencoded",
                queryParams: {
                    id:id
                },
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: 'id',
                    visible: false
                },
                    {
                        field: 'clientCity',
                        title: '分属区域'
                    },
                {
                    field: 'contractNo',
                    title: '合同号'
                },
                {
                    field: 'communityName',
                    title: '社区名'
                },
                {
                    field: 'clientName',
                    title: '客户姓名'
                },
             ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>